﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dataglot.CrossDb
{
    [Serializable]
    public class FeatureSupportInfo
    {
        public bool SupportsIdentityColumn { get; set; }
        public DbBrand Brand { get; set; }
        public string oleDbProvider { get; set; }
        public bool IsMsSql
        {
            get
            {
                if (Brand == DbBrand.MsSql2000 || Brand == DbBrand.MsSql2005)
                    return true;

                //???
                if (oleDbProvider == null)
                    return false;
                if (oleDbProvider.ToLower().Contains("sqlclient"))
                    return true;
                return false;
            }
        }
    }
}
